home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ubuntu-keyring.postinst < prev    next >
Text File  |  2009-08-28  |  511b  |  21 lines

  1. #!/bin/sh
  2.  
  3. # make sure apt knows about the new keys
  4. if [ -x /usr/bin/apt-key ]; then
  5.     /usr/bin/apt-key update
  6. fi
  7.  
  8. # the keyring in /var that gets fetched by apt-key net-update
  9. # if it does not yet exist, copy it to avoid uneeded net copy
  10. KEYRINGDIR="/var/lib/apt/keyrings"
  11. KEYRING="${KEYRINGDIR}/ubuntu-archive-keyring.gpg"
  12.  
  13. if ! test -d $KEYRINGDIR; then
  14.      mkdir -m 755 -p $KEYRINGDIR
  15. fi
  16.  
  17. if ! test -f $KEYRING; then
  18.      cp /usr/share/keyrings/ubuntu-archive-keyring.gpg $KEYRING
  19.      touch $KEYRING
  20. fi
  21.